package com.quick.service;

import com.quick.domain.Book;
import com.quick.repository.mapper.BookMasterMapper;
import com.quick.repository.mapper.BookSlaveMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName BookService
 * @Description TODO
 * @Author wangxin43
 * @Date 2018/7/3 下午2:17
 * @Version 1.0
 **/
@Service
public class BookService {
    @Resource
    private BookMasterMapper bookMasterMapper;

    @Resource
    private BookSlaveMapper bookSlaveMapper;

    public void save(Book book){
        bookMasterMapper.save(book);
        bookSlaveMapper.save(book);
    }
    public String tt(){
        return "66";
    }
}
